package com.cumulus.ianerp.ian.auth.menu.service;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cumulus.ianerp.ian.auth.emp.domain.Emp;
import com.cumulus.ianerp.ian.auth.menu.dao.MenuDao;
import com.cumulus.ianerp.ian.auth.menu.domain.Menu;
/**
 * 菜单查询service
 * @author Ian
 *@date 2017-05-14
 */
@Service
public class MenuService {
	
	@Autowired
	private MenuDao menuDao;

	public List<Menu> findAll(HttpSession session) {
	Emp emp=(Emp)session.getAttribute("emp");
		return menuDao.findAllMenu(emp.getUuid());
	}

}
